.<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*,com.autoMobile.bean.rrmBx" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>保险查询</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css">
</head>
<body>

    <div class="records-container">
        <div class="records-header">
        		
           <%
		        //从作用域中获取用户列表 
		        List<rrmBx> list = (List<rrmBx>) request.getAttribute("list");
		    %>
            <h2>事故记录</h2><a href="admin/bx.jsp">增加保险信息</a>
		    <a href="employee/accident-report.jsp">增加事故记录信息</a>
            <div class="filter-bar">
                <input type="text" class="form-control" placeholder="驾驶员" style="width: 120px; margin-right: 10px;">
                <input type="text" class="form-control" placeholder="车牌号" style="width: 120px; margin-right: 10px;">
                <select class="form-control" style="width: 120px; margin-right: 10px;">
                    <option>全部类型</option>
                    <option>碰撞事故</option>
                    <option>刮蹭事故</option>
                    <option>自然灾害</option>
                    <option>其他</option>
                </select>
                <select class="form-control" style="width: 120px; margin-right: 10px;">
                    <option>全部状态</option>
                    <option>处理中</option>
                    <option>已处理</option>
                </select>
                <button class="btn">搜索</button>
            </div>
        </div>

        <div class="table-responsive">
            <table class="table">
                            <thead>
                    <tr>
                        <th>ID</th>
                        <th>表单号</th>
                        <th>保险种类</th>
                        <th>保额</th>
                        <th>保险公司</th>
                        <th>初始日期</th>
                        <th>截止日期</th>
                        <th>车牌号</th>
                        <th>车型</th>
                        <th>颜色</th>
                        <th>车架号</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <thead>
                    <tr>        
		        <%
		            if (list != null) {
		                // 遍历用户列表，展示每个保险的详细信息
		                for (rrmBx bx : list) {
		        %>
		        <tr>
		            <td><%= bx.getId()%></td>
		            <td><%= bx.getBdh() %></td>
		            <td><%= bx.getBxzl() %></td>
		            <td><%= bx.getBe() %></td>
		            <td><%= bx.getBxgs() %></td>
		            <td><%= bx.getCsrq() %></td>
		            <td><%= bx.getJzrq() %></td>
		            <td><%= bx.getCph() %></td>
		            <td><%= bx.getCx() %></td>
		            <td><%= bx.getYs() %></td>
		            <td><%= bx.getCjh() %></td>
		            <td>
		                <a href="<%= request.getContextPath() %>/user/UpdateBx.jsp?id=<%= bx.getId() %>">编辑</a> ||
		                <a href="<%= request.getContextPath() %>/DelBxServlet?id=<%= bx.getId() %>">删除</a>
		            </td>
		        </tr>
		        <%
		                }
		            }
		        %>

                </thead>
               
            </table>
        </div>

        <div class="pagination">
            <button class="btn btn-page">&lt;</button>
            <button class="btn btn-page active">1</button>
            <button class="btn btn-page">2</button>
            <button class="btn btn-page">3</button>
            <button class="btn btn-page">&gt;</button>
        </div>
    </div>
</body>
</html> 